package cn.swing.his.pojo.affair.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

@Data
public class MedicineDetailsVO implements Serializable {
    private Integer id;
    private String type;
    private String name;
    private String manufacturer;
    private Double purchasePrice;
    private Double salePrice;
    private String batchNumber;
    private String description;
    private Integer stock;
    private String position;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date productionTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expirationTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime gmtCreated;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime gmtModified;
}
